﻿using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;

namespace WpfAppDemo.dataContext
{
    internal class MvvmLightDataContext: ViewModelBase
    {

        public ICommand CommitName { get; }

        public MvvmLightDataContext()
        {
         
            CommitName = new RelayCommand<string>(TipsUser);
        }

        private void TipsUser(string name) {

            MessageBox.Show(name);
        }
    }
}
